class MyArray {
    public Object[] array = new Object[10];
    public void setValue(int pos,int  val) {
        array[pos] = val;
    }
    public Object getValue(int pos){
        return array[pos];
    }
}
public class Test {
    public static void main(String[] args) {
        MyArray myArray = new MyArray();
        myArray.setValue(0,1);
        myArray.setValue(1,19);
        myArray.setValue(2,"gaobo");
    }
    public static void main2(String[] args) {
        Integer ii = 100;
        Integer ii2 = 100;
        System.out.println(ii==ii2);
    }
    public static void main1(String[] args) {
        int a = 1;
        Integer i = a;
        //Integer i = Integer.valueOf(a);//显示装箱
        Integer i2 = new Integer(10);
        int b = i2;
        //int b = i2.intValue();//显示拆箱
        double d = i2.doubleValue();
        System.out.println(i);
        System.out.println(b);
        System.out.println(d);
    }
}
